package com.qf.zhouce0630.esvo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;

/**
 * @Author UNIQ7xi
 * @Date 2023/6/30 19:16
 * @Version v1.8
 **/
@Data
@Document(indexName = "vote-liushui-index",type = "vote-liushui-type",shards = 1,replicas = 1,createIndex = false)
public class VoteInfo {

    @Id
    @Field(type = FieldType.Keyword)
    private String phoneNumber;

    @Field(type = FieldType.Keyword)
    private String candidateName;

    @Field(type = FieldType.Date)
    private Date voteTime;
}
